package ualrcdg.client;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * This class accesses profiles from the CDG
 * Server or will allow a user to create one
 * and stores said profile on the server. <br />
 * Continues to {@link CreateProfileActivity} or {@link LoginActivity}
 */
public class ProfileAccessorActivity extends Activity {

	protected CDGApplication App;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.profileaccessorlayout);
        
        final ProfileAccessorActivity pa = this;
        
        final Button YesButton = (Button) findViewById(R.id.button1);
        YesButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	startActivity(new Intent(pa, ualrcdg.client.CreateProfileActivity.class));
            }
        }); 
        
        
        final Button LoginButton = (Button) findViewById(R.id.button2);
        LoginButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	startActivity(new Intent(pa, ualrcdg.client.LoginActivity.class));
            }
        }); 
        
    }
    
}
